home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11733 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  939 b 

  1. From: _GOYRA_@msn.com (David Byrden)
  2. Subject: RE: Question about exemplars
  3. Date: 15 Mar 96 22:47:44 -0800
  4. References: <31475C8B.41C6@corp.sgi.com>
  5. Message-ID: <00001a81+0000ad7f@msn.com>
  6. Path: news.msn.com!msn.com
  7. Newsgroups: comp.lang.c++
  8. Organization: The Microsoft Network (msn.com)
  9.  
  10.  
  11. Vishwanath;
  12.  
  13. >>I write objects from a given class hierarchy into a buffer ( 
  14. contiguously ) and then send 
  15. >>the buffer accross to a server/peer. The problem is in trying to 
  16. regenerate a message when 
  17. >>the compilers used in creating the client/peer and server/peer 
  18. programs are DIFFERENT.
  19.  
  20. >>This I assume is because of the way VTable pointers are stored 
  21. within the class address 
  22. >>space.
  23.  
  24.     Not only the Vtables, but the layout of variables within the class 
  25. object, the size of the types, and the format of the bits within a 
  26. type are all non portable in C++. You are trying to do something that 
  27. the language does not support.
  28.  
  29.                                     David
  30.  
  31.